﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace APILocawebGatewayUI.Nucleo
{
    public partial class APILocawebConfiguration : ConfigurationSection
    {
        [ConfigurationProperty("Visa", IsRequired = true)]
        public VisaElement Visa
        {
            get { return (VisaElement)base["Visa"]; }
            set { base["Visa"] = value; }
        }

        public class VisaElement : ConfigurationElement
        {
            [ConfigurationProperty("Ambiente", DefaultValue = "teste", IsRequired = true)]
            public string Ambiente
            {
                get { return (string)base["Ambiente"]; }
                set { base["Ambiente"] = value; }
            }

            [ConfigurationProperty("Filiacao", IsRequired = true)]
            public string Filiacao
            {
                get { return (string)base["Filiacao"]; }
                set { base["Filiacao"] = value; }
            }
        }
    }
}